<?php

/**
 * Controller is the customized base controller class.
 * All controller classes for this application should extend from this base class.
 */
class Controller extends CController {

    private $_pageTitle;
    public $layout = 'column1';
    public $menu = array();
    public $breadcrumbs = array();

    public function getPageTitle() {
        if ($this->_pageTitle !== null)
            return $this->_pageTitle;
        else {
            return $this->_pageTitle = ' - ' . Yii::app()->name;
        }
    }

    public function setPageTitle($value) {
        $this->_pageTitle = $value;
    }

}